package com.h.forum.dao;

import com.h.forum.pojo.model.ArticleReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleReplyMapper {
    int insert(ArticleReply record);

    int insertSelective(ArticleReply record);

    ArticleReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleReply record);

    int updateByPrimaryKey(ArticleReply record);

    /**
     * 查询回复列表根据 帖子的Id
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId (@Param("articleId") Long articleId);
}